import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";

// 全局的样式
import "@/styles/index.scss";
import "lib-flexible"; // 淘宝适配 meta
import Vant from "vant";
Vue.use(Vant);
import "vant/lib/index.css";
import { baseURL } from "@/api/config";
Vue.prototype.$baseURL = baseURL;
// console.log($baseURL);
import "@/utils/golbal";
Vue.use(Vant);
import { http } from "@/api/";
Vue.prototype.$ajax = http;
import { reg } from "@/utils/validate";

Vue.prototype.$reg = reg;
// import "@/utils/mixins";
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
